package com.yannis.pattern.factorymethod;

public class FactoryMethodTest {

    public static void main(String[] args) {
        Dialog dialog = null;
        String str = "Windows";
        if(str.equals("Windows")){
            dialog = new WindowsDialog();
        }else if(str.equals("Web")){
            dialog = new WebDialog();
        }

        dialog.render();
    }
}
